﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="publish_activity.aspx.cs" Inherits="weikebuluo.web.wechat.party.publish_activity" %>


<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="utf-8" />
	<title></title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" />
	<meta name="format-detection" content="telephone=no" />
    <link href="styles/style.css" rel="stylesheet" type="text/css" />
    <script src="styles/main.js" type="text/javascript"></script>
    <script src="/scripts/JQuery.min.js" type="text/javascript"></script>
    <script src="/scripts/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>

<body>
<style>
.deploy_ctype_tip{z-index:1001;width:100%;text-align:center;position:fixed;top:50%;margin-top:-23px;left:0;}.deploy_ctype_tip p{display:inline-block;padding:13px 24px;border:solid #d6d482 1px;background:#f5f4c5;font-size:16px;color:#8f772f;line-height:18px;border-radius:3px;}

a:link { 
color:#FF0000; 
text-decoration:underline; 
} 
a:visited { 
color:#FF0F00; 
text-decoration:none; 
} 
a:hover { 
color:#000000; 
text-decoration:none; 
} 
a:active { 
color:#FFFFFF; 
text-decoration:none; 
} 
</style>
<form method="post" action="publish_activity.aspx" onsubmit="return tgSubmit()">
        <%if (!string.IsNullOrEmpty(Request.QueryString["wxid"]))
          {%>
          
            <input type="hidden"  name="wxid" value="<%=Request.QueryString["wxid"] %>" />
          <%} %>
          <%if (!string.IsNullOrEmpty(Request.QueryString["uid"]))
          {%>
          
            <input type="hidden"  name="uid" value="<%=Request.QueryString["uid"] %>" />
          <%} %>
        
        
<div class="main" id="wrap">
    
    <div class="p_mod table_1 table_3 desks" id="desks" style="display: block;" >
        <h2 class="p_mod_title">活动信息</h2>
        <dl class="f_order_list single">
        <strong>活动名字：</strong><input type="text" placeholder="限8字之内..." id="name" name="name" value="" style="background:transparent;border:1px solid #a0a29e;margin-top:0px" />
        <br/>
        <strong style="line-height:25px">活动地址：</strong><input type="text" placeholder="输入活动详细地址..." id="address" name="address" value="" style="background:transparent;border:1px solid #a0a29e;margin-top:0px" />
        <br/>
        <strong style="line-height:25px">集合地点：</strong><input type="text" placeholder="输入活动集合地点..." id="setAddress" name="setAddress" value="" style="background:transparent;border:1px solid #a0a29e;margin-top:0px" />
        <br/><!-- <input type="text"  style="background:transparent;border:0px solid #a0a29e;width:280px"  id="address" name="address" value="" readonly="readonly"/> -->
        <strong>活动时间：</strong><input type="input" class="px" style="background:transparent;border:1px solid #a0a29e;margin-top:0px" id="day" value="2014-07-14" onClick="WdatePicker()" name="day" />
        <select name="time" id="time">
  					                       		<option value="1">1点</option>                       		<option value="2">2点</option>                       		<option value="3">3点</option>                       		<option value="4">4点</option>                       		<option value="5">5点</option>                       		<option value="6">6点</option>                       		<option value="7">7点</option>                       		<option value="8">8点</option>                       		<option value="9">9点</option>                       		<option value="10">10点</option>                       		<option value="11">11点</option>                       		<option value="12">12点</option>                       		<option value="13">13点</option>                       		<option value="14">14点</option>                       		<option value="15">15点</option>                       		<option value="16">16点</option>                       		<option value="17">17点</option>                       		<option value="18">18点</option>                       		<option value="19">19点</option>                       		<option value="20">20点</option>                       		<option value="21">21点</option>                       		<option value="22">22点</option>                       		<option value="23">23点</option>                       		<option value="24">24点</option>		</select><br/>
        <strong>活动详细内容：</strong> <br/><textarea name="info" id="info"  rows="5" style="width:80%;height:50px"></textarea>
        <br/>
        <strong>姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名：</strong><input type="text" placeholder="请输入姓名" id="truename" name="truename" value="" style="background:transparent;border:1px solid #a0a29e;margin-top:0px"/>
        <br/>
        <strong>手&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;机：</strong><input type="text" placeholder="请输入联系人手机号" id="tel" name="tel" value="" style="background:transparent;border:1px solid #a0a29e"/>
        <br/>
       <!--  <strong>是否亲自参与：</strong><select style="margin-top:10px" name="isbig" id="isbig"></select><strong>&nbsp;&nbsp;&nbsp;<a id="lianxi" style="color:#ff0000;text-decoration:underline;">带头大哥职责</a></strong>
         <input type="hidden"" value="" name="id"/>
        <p id="p1" style="color:#ff0000">选择亲自参与即表示你也报名你提交的活动，否则只是提交活动而自己不参与！</p> -->
                  </dl>
        </div>
       
       <div class="p_mod table_1 table_3 desks" id="desks" style="display: block;" >
        <h2 class="p_mod_title">活动提交说明</h2>
        <dl class="f_order_list single">
        <strong>提交条件：需要功勋值≧1&nbsp;&nbsp;&nbsp;</strong><a  href="#">功勋值说明！</a><br/>
                  </dl>
        </div>
       
    	<div class="o_btn clearfix">
        <input type="hidden" name="action" value="one" />
    		<input type="button" class="o_btn_back ts1" onclick="history.go(-1);" value="返回" />
    		<input  type="submit" class="o_btn_submit ts1" value="提交发布" />    	</div>
    
</div>
</form>
<script>
    $(document).ready(function () {
        var timeop2 = new Option("无", "无");
        $("#isbig")[0].options.add(timeop2); //添加到select对像

        var timeop0 = new Option("我不当联系人", "我不当联系人");
        $("#isbig")[0].options.add(timeop0); //添加到select对像

        var timeop1 = new Option("我要当联系人", "我要当联系人");
        $("#isbig")[0].options.add(timeop1); //添加到select对像

        $("#p1").hide(); //添加到select对像
    })

    $('#lianxi').click(function () {
        $("#p1").toggle();
    })
    function showTip(tipTxt) {
        var div = document.createElement('div');
        div.innerHTML = '<div class="deploy_ctype_tip"><p>' + tipTxt + '</p></div>';
        var tipNode = div.firstChild;
        $("#wrap").after(tipNode);
        setTimeout(function () {
            $(tipNode).remove();
        }, 2000);
    }
    function tgSubmit() {
        if ($("#name").val() == '') {
            showTip('活动名字不能为空！');
            return false;
        };
        if ($("#address").val() == '') {
            showTip('活动地址不能为空！');
            return false;
        };
        if ($("#info").val() == '') {
            showTip('活动详细内容不能为空！');
            return false;
        };
        if ($("#setAddress").val() == '') {
            showTip('活动集合地点不能为空！');
            return false;
        };
        if ($("#truename").val() == '') {
            showTip('名字不能为空！');
            return false;
        };
        if ($("#tel").val() == '') {
            showTip('电话不能为空！');
            return false;
        };
        //   var text = $('#isbig option:selected').text();
        //  if( text == '无'){
        //   	showTip('请选择是否当联系人');
        //  	 return false;
        //   };
        //alert('bb');
        // alert($lrjUser['honesty']);
        // return false;
        return true;
    }
	
	</script>
</body>
</html>
